<!--
 * @Description: 
 * @Date: 2023-02-09 14:28:42
 * @Author: LP
 * @LastEditTime: 2023-05-24 11:29:22
-->
<template>
	<p />
	用户{{ userIds }}
	<FlowSelection ref="flowSelection" styleType="select" :isRadio="false" v-model="userIds"> </FlowSelection>
	<p />
	组织：{{ orgIds }}
	<FlowSelection ref="flowSelection" styleType="select" :isRadio="false" v-model="orgIds" type="deptPost"> </FlowSelection>
	<p />
	角色：{{ roleIds }}
	<FlowSelection ref="flowSelection" styleType="select" :isRadio="false" v-model="roleIds" type="role"> </FlowSelection>
	<p />
	岗位：{{ postIds }}
	<FlowSelection ref="flowSelection" title="岗位" styleType="select" :isRadio="false" v-model="postIds" type="post"> </FlowSelection>

	<p />
	部门：{{ deptIds }}
	<FlowSelection ref="flowSelection" title="部门" styleType="select" :isRadio="false" v-model="deptIds" type="dept"> </FlowSelection>
</template>
<script lang="ts" setup>
import { ref, onMounted } from 'vue';
import { FlowSelection } from '@javaguns/flow-ui';

const flowSelection = ref<InstanceType<typeof FlowSelection>>();

const userIds = ref<string[]>(['1750474079328706561']);
const orgIds = ref<string[]>([]);
const roleIds = ref<string[]>([]);
const postIds = ref<string[]>([]);
const deptIds = ref<string[]>([]);

/* onMounted(() => {
   flowDesigner.value?.setData({
	   definitionId: '1770790828016099329',
	   modelId: '1767545255787954178',
   });
}); */
</script>
